package org.ysu.service.impl;

import org.ysu.entity.Villages;
import org.ysu.mapper.TownsMapper;
import org.ysu.mapper.VillagesMapper;
import org.ysu.service.VillagesService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 村庄数据 服务实现类
 * </p>
 *
 * @author ZhangYibo
 * @since 2024-08-27
 */
@Service
public class VillagesServiceImpl extends ServiceImpl<VillagesMapper, Villages> implements VillagesService {
    @Resource
    VillagesMapper villagesMapper;
    @Override
    public String getNameById(Long rId) {
        return villagesMapper.selectNameById(rId);
    }
}
